package com.rjkj.medicalwaste.viewmodels

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class TitleStateViewModel:ViewModel() {
    val showIcon = MutableLiveData(false)
    val showBack = MutableLiveData(false)
    val showViceTitle = MutableLiveData(false)
    val mainTitle = MutableLiveData("")
    val icon = MutableLiveData("")
    val viceTitle = MutableLiveData("")
    fun showUserInfo(){
        showIcon.value = true
        showViceTitle.value = true
        showBack.value = false
        mainTitle.value = ""
    }
    fun showTitleAndBack(title: String){
        showIcon.value = false
        showBack.value = true
        showViceTitle.value = false
        mainTitle.value = title
    }
}